Crate const_oid[][src]

Const-friendly X.660 Object Identifier (OID) library with support for heapless no_std (i.e. embedded) environments.

About OIDs

Object Identifiers, a.k.a. OIDs, are an International Telecommunications Union (ITU) and ISO/IEC standard for naming any object, concept, or “thing” with a globally unambiguous persistent name.

OIDS are defined in the ITU’s X.660 standard.

The following is an example of an OID, in this case identifying the rsaEncryption algorithm:

1.2.840.113549.1.1.1

For more information, see: https://en.wikipedia.org/wiki/Object_identifier

Limits

The BER/DER encoding of OIDs supported by this library MUST be shorter than the MAX_LEN constant.

Minimum Supported Rust Version

This crate requires Rust 1.46 at a minimum.

Minimum supported Rust version may be changed in the future, but it will be accompanied with a minor version bump.

Structs

Arcs

Iterator over arcs (a.k.a. nodes) in an ObjectIdentifier.

Error

Error type

ObjectIdentifier

Object identifier (OID).

Constants

MAX_ARCSDeprecated

Maximum number of arcs in an OID.

MAX_LEN

Maximum length of a DER-encoded OID in bytes.

MIN_ARCS

Minimum number of arcs in an OID.

Type Definitions

Arc

Type used to represent an “arc” (i.e. integer identifier value)

Result

Result type